package com.yunxin.core.infra.persistence.mapper.user;

import com.baomidou.dynamic.datasource.annotation.DS;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author zero°
 * @since 2023-06-02
 */
@DS("core")
@Mapper
public interface UserVisitorInfoExtendMapper extends UserVisitorInfoMapper {

    /**
     * 根据访问者id和渠道推广code查询访问者信息id
     * @param visitorId visitorId
     * @param channelPromotionCode channelPromotionCode
     * @return id
     */
    Long getUserVisitorInfoIdByVisitorAndChannelPromotion(@Param("visitorId") String visitorId,
                                                          @Param("channelPromotionCode") String channelPromotionCode);

}
